const { ccclass, property } = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    fromNode = new cc.Node();
    toNode = new cc.Node();

    onLoad() {
        let obj = { a: 1, b: 2 };
        let cloneObj = GUtils.clone(obj);
        obj.a = 10;
        console.error(obj, cloneObj);

        let position = GUtils.positionTransfor(this.fromNode, this.toNode); // cc.v2(-300, -300)
        console.error("positionTransfor", position.x, position.y);
    }

}